import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.UnknownHostException;

public class exercise_2 {
	public static void main(String[] args) {
   
        String urlName="www.baidu.com";
        try {
            InetAddress[] hosts = InetAddress.getAllByName(urlName);
            for (InetAddress host : hosts) {
                System.out.println(host.getHostAddress());
            }
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }
	}

